#ifndef EXPLOIT_CONFIG
#define EXPLOIT_CONFIG



//#define RESET_HOME_SCREEN_LANGUAGE // <- work

#define HBL_LOAD_ADDRESS 0x09FC0000


#define TH_ADDR_LIST { \
	 (0x017EC400 + 0x08800000)/*CseAt3*/\
	,(0x017F0400 + 0x08800000)/*CseAt3*/\
	,(0x017F4400 + 0x08800000)/*CseSasRebd*/\
	,(0x017F5400 + 0x08800000)/*Csesnddry*/\
	,(0x017F6400 + 0x08800000)/*transfer*/\
	,(0x017F6800 + 0x08800000)/*sha1*/\
	,(0x017F6C00 + 0x08800000)/*fake*/\
	,(0x017FFC00 + 0x08800000)/*checkExit*/\
	,(0x017FFE00 + 0x08800000)/*propry*/\
	,(0x017F7C00 + 0x08800000)/*user_main*/\
}


#define EV_ADDR_LIST { \
	 0x00367DD0 + 0x08800000  /*transfer*/\
	,0x00367DA8 + 0x08800000  /*sha1*/\
}

#define SEMA_ADDR_LIST { \
	 0x0036201C + 0x08800000  /*fakeRof*/\
	,0x001C713C + 0x08800000  /*CseBgn*/\
	,0x001C714C + 0x08800000  /*CseEnd*/\
	,0x0023338C + 0x08800000  /*SemaSif*/\
	,0x013E9F2C + 0x08800000  /*CseAt3*/\
	,0x013E9F24 + 0x08800000  /*CseAt3*/\
}

#if 0
//Addresses where the vtimer to delete can be found
#define VT_ADDR_LIST { 0x013B5C14 + 0x08800000  /*ChangeThreadVTimer*/\
					  ,0x00233E40 + 0x08800000  /*CsePspVtimer*/\
}
#endif


#define KILL_MODULE_MEMSET {\
	memset((void *)(0x08866170)  , 0x00 , 0x088661AC - 0x08866170);\
	sceKernelDcacheWritebackInvalidateAll();\
}


#define RELOC_MODULE_ADDR_1 0x096A0000
#define RELOC_MODULE_ADDR_2 (RELOC_MODULE_ADDR_1+0x20000)
#define RELOC_MODULE_ADDR_3 (RELOC_MODULE_ADDR_1+0x40000)
#define RELOC_MODULE_ADDR_4 (RELOC_MODULE_ADDR_1+0x60000)

 //Preload freemem attempts to free the memory before loading HBL, in order to load HBL instead. This is required for some games
 // but is usually not a good idea, try to avoid it if possible (and move the values in GAME_FREEMEM_ADDR), because it frees the memory before we stop anything else
//#define GAME_PRELOAD_FREEMEM {  }
//#define GAME_FREEMEM_ADDR {}

// this needs to be defined before loading the common onfig below
#undef HBL_ROOT
#define HBL_ROOT "ms0:/PSP/SAVEDATA/ULJM05800QST/"

// common configuration for all "life" exploits
#include "../mh_common/common_exploit_config.h"


#endif